//
//  YLAppConst.m
//  DoulinClient
//
//  Created by Apple on 17/3/12.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "YLAppConst.h"

#pragma mark ---------- NSUserDefaults存储的数据 ---------
void GCD_GLOBE_MAIN(dispatch_block_t block){
    dispatch_async(dispatch_get_main_queue(), block);
}
void GCD_AFTER(CGFloat time, dispatch_block_t block){
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(time * NSEC_PER_SEC)), dispatch_get_main_queue(), block);
}

#pragma mark - --------- NSUserDefaults存储的数据 ---------
/** 应用首页 */
NSString * const kUDHomePage = @"kUDHomePage";
/** 是否强制更新 */
NSString * const kUDAppUpdate = @"kUDAppUpdate";
/** 新人注册送的优惠券 */
NSString * const kUDCouponList = @"kUDCouponList";
/** 应用是否是发布状态 */
NSString * const kUDPublished = @"kUDPublished";
/** 店铺是否休息 */
NSString * const kUDShopRest = @"kUDShopRest";
/** 切换服务器 */
NSString * const kUDServerIP = @"kUDServerIP";

#pragma mark -------------------通知------------------
/** 网络改变 */
NSString * const YLNetworkNotify = @"YLNetworkNotify";

/** 更新商家信息 */
NSString * const YLChangeInfoNotify = @"YLChangeInfoNotify";







/** 关注/取关 第一个参数:用户ID  第二个参数:YES-关注 NO-取关 */
NSString * const YLFocusDoneNotify = @"YLFocusDoneNotify";
/** 地址信息有修改 */
NSString * const YLAddressChangeNotify = @"YLAddressChangeNotify";
/** 社区首页回到顶部 */
NSString * const YLServiceTopNotify = @"YLServiceTopNotify";

/** 选择社区成功通知 */
NSString * const YLSelectCommunityNotify = @"YLSelectCommunityNotify";
/** 更换社区成功通知 */
NSString * const YLChangeCommunityNotify = @"YLChangeCommunityNotify";

/** IM更新红点未读 */
NSString * const YLUpdateUnreadNotify = @"YLUpdateUnreadNotify";

/** IM收到系统类型消息
 *  1: 不在群内, 在另一台机器更换社区, 本机器收到的通知
 */
NSString * const YLIMSysMsgNotify = @"YLIMSysMsgNotify";
/** IM同步完成 */
NSString * const YLIMMsgSyncNotify = @"YLIMMsgSyncNotify";
/** IM加入群聊 */
NSString * const YLIMEnterTeamNotify = @"YLIMEnterTeamNotify";
/** IM退群完成(自己主动退群) */
NSString * const YLIMQuitTeam1Notify = @"YLIMQuitTeam1Notify";
/** IM退群完成(收到的退群消息) */
NSString * const YLIMQuitTeam2Notify = @"YLIMQuitTeam2Notify";
/** IM用户群内信息改变 */
NSString * const YLIMMemberInfoNotify = @"YLIMMemberInfoNotify";
/** IM设置群主 */
NSString * const YLIMTeamOwnerNotify = @"YLIMTeamOwnerNotify";
/** IM踢人 */
NSString * const YLIMRemoveMemberNotify = @"YLIMRemoveMemberNotify";

/** 活动报名成功 */
NSString * const YLSignActivityDoneNotify = @"YLSignActivityDoneNotify";
/** 活动点赞成功 */
NSString * const YLZanActivityDoneNotify = @"YLZanActivityDoneNotify";
/** 活动评论成功 */
NSString * const YLComActivityDoneNotify = @"YLComActivityDoneNotify";
/** 活动删除成功 */
NSString * const YLDelActivityDoneNotify = @"YLDelActivityDoneNotify";

/** 屏蔽用户发布的 "动态/帮帮/活动" 内容 */
NSString * const YLShieldContentNotify = @"YLShieldContentNotify";
/** 二手闲置已售出 */
NSString * const YLIdleSaledNotify = @"YLIdleSaledNotify";
/** 二手闲置已删除 */
NSString * const YLIdleDeleteNotify = @"YLIdleDeleteNotify";

/** 动态删除成功 */
NSString * const YLDelDynamicDoneNotify = @"YLDelDynamicDoneNotify";
/** 动态点赞成功 */
NSString * const YLZanDynamicDoneNotify = @"YLZanDynamicDoneNotify";
/** 动态评论成功 */
NSString * const YLComDynamicDoneNotify = @"YLComDynamicDoneNotify";
/** 动态发布成功 */
NSString * const YLPublishDynamicNotify = @"YLPublishDynamicNotify";
/** 帮帮发布成功 */
NSString * const YLPublishHelpNotify = @"YLPublishHelpNotify";
/** 动态顶部轮播图刷新 */
NSString * const YLDynamicHeaderUrlNotify = @"YLDynamicHeaderUrlNotify";
/** 动态 子VC 滚到顶 */
NSString * const YLDTleaveTopNotify = @"YLDTleaveTopNotify";
/** 动态 子VC 数据加载完毕 */
NSString * const YLDTloadDoneNotify = @"YLDTloadDoneNotify";

/** 达人顶部轮播图刷新 */
NSString * const YLDRHeaderUrlNotify = @"YLDRHeaderUrlNotify";
/** 达人认证/修改成功 */
NSString * const YLDRCheckDoneNotify = @"YLDRCheckDoneNotify";
/** 达人 子VC 滚到顶 */
NSString * const YLDRleaveTopNotify = @"YLDRleaveTopNotify";
/** 达人 子VC 数据加载完毕 */
NSString * const YLDRloadDoneNotify = @"YLDRloadDoneNotify";

/** 通信录返回键数目 */
NSString * const YLMsgNumRefreshNotify = @"YLMsgNumRefreshNotify";
/** 通讯录内搜索 */
NSString * const YLMsgSearchRefreshNotify = @"YLMsgSearchRefreshNotify";
/** 通讯录页面点击 "好友/关注/粉丝" */
NSString * const YLMsgClickRefreshNotify = @"YLMsgClickRefreshNotify";

/** 购物车内商品数变化 第一个参数:商品ID  第二个参数:0:商品删除 1:商品+1  2:商品-1 */
NSString * const YLGoodsSumHandleNotify = @"YLGoodsSumHandleNotify";
/** 小购物车发生变化 */
NSString * const YLShopCarChangedNotify = @"YLShopCarChangedNotify";
/** 购物车商品总数量 */
NSString * const YLAllGoodsSumNotify = @"YLAllGoodsSumNotify";

/** 扫码商品数量变化 */
NSString * const YLScanGoodsSumNotify = @"YLScanGoodsSumNotify";

/** 订单取消 */
NSString * const YLOrderCancelNotify = @"YLOrderCancelNotify";
/** 订单提交成功 */
NSString * const YLOrderGeneratedNotify = @"YLOrderGeneratedNotify";
/** 申请退款成功 */
NSString * const YLOrderRefundNotify = @"YLOrderRefundNotify";
/** 订单评价成功 */
NSString * const YLOrderAppraiseNotify = @"YLOrderAppraiseNotify";
/** 订单支付成功 */
NSString * const YLOrderPayDoneNotify = @"YLOrderPayDoneNotify";
/** 再来一单 */
NSString * const YLOneMoreOrderNotify = @"YLOneMoreOrderNotify";
/** 订单确认收货 */
NSString * const YLOrderConfirmNotify = @"YLOrderConfirmNotify";

/** 去使用优惠券 */
NSString * const YLUseCouponNotify = @"YLUseCouponNotify";
/** 优惠券被使用 */
NSString * const YLCouponUsedNotify = @"YLCouponUsedNotify";

/** 个人主页数据请求成功 */
NSString * const YLHomePageDataNotify = @"YLHomePageDataNotify";
/** 个人主页 子VC 滚到顶 */
NSString * const YLHPleaveTopNotify = @"YLHPleaveTopNotify";
/** 个人主页 子VC 数据加载完毕 */
NSString * const YLHPloadDoneNotify = @"YLHPloadDoneNotify";


